home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdlib / RCS / abs.man,v < prev    next >
Encoding:
Text File  |  1989-01-06  |  1.1 KB  |  78 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     89.01.05.17.59.52;  author ouster;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.01.05.17.20.54;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Added labs to man page.
  27. @
  28. text
  29. @.\"    @@(#)abs.3    6.1 (Berkeley) 5/15/85
  30. .\"
  31. .TH ABS 3 "May 15, 1985"
  32. .AT 3
  33. .SH NAME
  34. abs, labs \- integer absolute value
  35. .SH SYNOPSIS
  36. .nf
  37. .B #include <stdlib.h>
  38.  
  39. .B int abs(i)
  40. .B int i;
  41.  
  42. .B long int labs(i)
  43. .B long int i;
  44. .fi
  45. .SH DESCRIPTION
  46. .I Abs
  47. returns the absolute value of its integer operand.  \fILabs\fR is
  48. similar to \fIabs\fR except that its argument and its resul are both
  49. of type \fBlong int\fR.
  50. .SH SEE ALSO
  51. floor(3M) for
  52. .I fabs
  53. .SH BUGS
  54. Applying the \fIabs\fP function to the most negative integer generates a
  55. result which is the most negative integer.  That is, 
  56. .IP "abs(0x80000000)"
  57. .LP
  58. returns 0x80000000 as a result.
  59. @
  60.  
  61.  
  62. 1.1
  63. log
  64. @Initial revision
  65. @
  66. text
  67. @d6 1
  68. a6 1
  69. abs \- integer absolute value
  70. d9 3
  71. a11 1
  72. .B abs(i)
  73. d13 3
  74. d19 3
  75. a21 1
  76. returns the absolute value of its integer operand.
  77. @
  78.